package com.hu.contoller;

import com.hu.entity.vo.Result;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ExceptionController {
    public Result runtimeException(RuntimeException e){
        return Result.fail(e.getMessage());
    }
}
